﻿namespace Net.Config
{
    /// <summary>
    /// 客户端配置
    /// </summary>
    public class ClientConfig : ConfigBase
    {
        /// <summary>
        /// 自动断线重新连接, 默认是true
        /// </summary>
        public bool AutoReconnecting { get; set; } = true;
        /// <summary>
        /// 断线重连次数, 默认会重新连接10次，如果连接10次都失败，则会关闭客户端并释放占用的资源
        /// </summary>
        public int ReconnectCount { get; set; } = 10;
        /// <summary>
        /// 断线重连间隔, 默认间隔2秒
        /// </summary>
        public int ReconnectInterval { get; set; } = 2000;
    }
}
